package in.equilibr.ingredients.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.Store;

//JPA Persistence Dependencies

@Entity
@Indexed(index="hibernate/index")
@Table(name = "ingredient")
public class Ingredient {
	@Id
	@GeneratedValue
	@Column(name = "ID")
	private Integer id;

	@Field(index=Index.TOKENIZED, store=Store.NO)
	@Column(name = "Name")
	private String name;

	@Column(name = "Calories")
	private String calories;

	@Column(name = "Fat")
	private String fat;
	
	@Column(name = "Carbs")
	private String carbs;
	
	@Column(name = "Protein")
	private String protein;

	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCalories() {
		return calories;
	}

	public void setCalories(String calories) {
		this.calories = calories;
	}

	public String getFat() {
		return fat;
	}

	public void setFat(String fat) {
		this.fat = fat;
	}

	public String getCarbs() {
		return carbs;
	}

	public void setCarbs(String carbs) {
		this.carbs = carbs;
	}

	public String getProtein() {
		return protein;
	}

	public void setProtein(String protein) {
		this.protein = protein;
	}


}

